home *** CD-ROM | disk | FTP | other *** search
- trace("stage " + _root.stage);
- _root.chara = [0,0,0,0,0];
- _root.boil = [0,0,0,0,0];
- _root.nowchar = 0;
- _root.skor = [0,0,0,0,0];
- i = 1;
- while(i <= 4)
- {
- _root["a" + i].gotoAndStop(i);
- _root["w" + i].gotoAndStop(2);
- _root["w" + i].code = i;
- _root["w" + i].onRollOver = function()
- {
- _root.efek.attachSound("click");
- _root.efek.setVolume(100);
- _root.efek.start();
- this.gotoAndStop(1);
- };
- _root["w" + i].onRollOut = function()
- {
- this.gotoAndStop(2);
- };
- _root["w" + i].onRelease = function()
- {
- _root.nowchar = this.code;
- _root.chara[this.code] = 1;
- _root.boil[1] = this.code;
- j = 2;
- while(j <= 4)
- {
- ok = 0;
- do
- {
- r = random(4) + 1;
- if(_root.chara[r] != 1)
- {
- _root.chara[r] = 1;
- _root.boil[j] = r;
- ok = 1;
- }
- }
- while(ok != 1);
-
- j++;
- }
- ll = 1;
- while(ll <= 4)
- {
- ll++;
- }
- _root.gotoAndStop("ploy");
- };
- i++;
- }
-